<template>
	<view>
		<view v-for="item in studentList">
			<itemList :item="item"></itemList>
		</view>
	</view>
</template>

<script>
	import itemList from "@/components/itemList4"
	export default {
		data() {
			return {
				rId:"",
				studentList:""
			}
		},
		onLoad(option) {
			this.rId = option.rId
			console.log("ssrId=>",this.rId)
			this.getStudent()
		},
		methods: {
		async	getStudent(){
			const res = await this.$myRequest({
				url:"/queryUserfulBookingList/" + this.rId
			}).then(res =>{
				if(res.data.success){
					this.studentList = res.data.data
					console.log("this.studentList=>",this.studentList)	
				}else{
					this.studentList = ""
				}
			})    
	
			}
		},
		components:{
			itemList
		}
	}
</script>

<style>

</style>
